package com.jy.rhin.model.body.fuyou;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.parse.ItemSTSelector;
import lombok.Data;

import java.util.List;

@Data
public class JiWangShi {

	@XPath(listItemPath = "/entry/observation/code[@code='DE02.10.026.00'][@codeSystem='2.16.156.10011.2.2.1']",
    		listItemBackLevel=1,
    		itemParser = ItemSTSelector.class,
			path = "",
			xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_10_026_00))
	List<String> jiBingShi;
	@XPath(model = "code", codePath = "/entry/observation/code[@code='DE02.10.062.00'][@codeSystem='2.16.156.10011.2.2.1']",
			path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_10_062_00))
	String shouShuSBZ;
	@XPath(path = "/entry/observation/code[@code='DE02.10.062.00'][@codeSystem='2.16.156.10011.2.2.1']/..",
			listItemPath = "/entryRelationship/observation/code[@code='DE02.10.061.00'][@codeSystem='2.16.156.10011.2.2.1']",
    		listItemBackLevel=1,
    		itemParser = ItemSTSelector.class,
			xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_10_061_00))
	List<String> shouShuSMS;
	@XPath(listItemPath = "/entry/observation/code[@code='DE02.10.055.00'][@codeSystem='2.16.156.10011.2.2.1']",
    		listItemBackLevel=1,
    		itemParser = ItemSTSelector.class,
			path = "",
			 xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_10_055_00))
	List<String> bingFaZheng;
	@XPath(listItemPath = "/entry/observation/code[@code='DE03.00.028.00'][@codeSystem='2.16.156.10011.2.2.1']",
    		listItemBackLevel=1,
    		path = "")
	List<JieChuYHLB> geRenJCYHLB;
}
